home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / rpg / crossfir.92 / crossfir / crossfire-0.92.5 / crossedit / include / Posix.h < prev    next >
C/C++ Source or Header  |  1996-07-24  |  2KB  |  108 lines

  1. /*
  2.  * reference: Portable C Software / Mark Horton, ISBN 0-13-868959-7
  3.  */
  4.  
  5. #ifndef _Posix_h
  6. #define _Posix_h
  7.  
  8. /* sys/types needs to be included before POSIX_SOURCE is defined on
  9.  * some systems.  Next is not one of them.
  10.  */
  11.  
  12. #ifndef NeXT
  13. #include <sys/types.h>
  14. #endif
  15.  
  16. /*
  17.  * - have to be before includes
  18.  */
  19. #ifndef _POSIX_SOURCE
  20. #define _POSIX_SOURCE
  21. #endif
  22.  
  23. /* _Ultrix_ may not be the symbol name, but if you are on an Ultrix
  24.  * system, make sure __POSIX is defined.
  25.  */
  26. #if defined(ultrix)
  27. #define __POSIX
  28. #endif
  29.  
  30. /*
  31.  * have to be before <dirent.h>
  32.  */
  33. #include <sys/types.h>
  34.  
  35. /*
  36.  * have to be before <dirent.h>
  37.  */
  38. #include <sys/stat.h>
  39.  
  40. /* NeXT apparantly needs NAME_MAX defined before dirent.h is included. */
  41.  
  42. #ifndef NAME_MAX
  43. #define NAME_MAX   255  /* 14 grr max chars in filename, no term. null */
  44. #endif
  45.  
  46. #ifndef MAXNAMELEN
  47. #define MAXNAMELEN 255
  48. #endif
  49.  
  50. #include <dirent.h>
  51.  
  52. #include <errno.h>
  53.  
  54. #include <fcntl.h>
  55. #ifndef O_NONBLOCK
  56. #define O_NONBLOCK O_NDELAY
  57. #endif
  58.  
  59. #if 0
  60. #include <grp.h>
  61. #endif
  62.  
  63. #include <limits.h>
  64. #include <locale.h>
  65. #include <pwd.h>
  66. #include <setjmp.h>
  67. #include <signal.h>
  68. #include <stdio.h>
  69. #include <sys/times.h>
  70. #include <sys/utsname.h>
  71. #include <unistd.h>
  72.  
  73. /*
  74.  *
  75.  */
  76. #ifndef ARG_MAX
  77. #define ARG_MAX    20478 /* */
  78. #endif
  79. #ifndef CHILD_MAX
  80. #define CHILD_MAX  32 /* */
  81. #endif
  82. #ifndef OPEN_MAX
  83. #define OPEN_MAX   20 /* */
  84. #endif
  85. #ifndef LINK_MAX
  86. #define LINK_MAX   1000 /* */
  87. #endif
  88. #ifndef MAX_CANON
  89. #define MAX_CANON  512 /* ;always */
  90. #endif
  91. #ifndef MAX_INPUT
  92. #define MAX_INPUT  512 /* ;always */
  93. #endif
  94. #ifndef PATH_MAX
  95. #define PATH_MAX   1023 /* max char in pathname, no term. null ;always */
  96. #endif
  97. #ifndef PIPE_BUF
  98. #define PIPE_BUF   8192      /* ;always */
  99. #endif
  100. #ifndef STREAM_MAX
  101. #define STREAM_MAX OPEN_MAX  /*  */
  102. #endif
  103. #ifndef _POSIX_ARG_MAX 
  104. #define _POSIX_ARG_MAX 4096
  105. #endif
  106.  
  107. #endif /* _Posix_h */
  108.